import { ref } from "vue"

import PageContent from "@/components/pageContent"

export function userPageSearch() {
  const pageContentRef = ref<InstanceType<typeof PageContent>>()
  // 重置
  const changeBtnReset = () => {
    pageContentRef.value?.getPageData()
  }
  // 搜索
  const changeBtnSearch = (query: any) => {
    pageContentRef.value?.getPageData(query)
  }
  return [pageContentRef, changeBtnReset, changeBtnSearch]
}
